<script setup>
    const props = defineProps({
        message: String
    })
</script>
<template>
<div class="test">
    <h1>子组件1</h1>
  父组件传入的值： {{ message}}
</div>
</template>
<style scoped>
.test {
    width: 300px;
    height: 200px;
    border: 1px solid black;
}
</style>